<?php 
defined('IN_GoogleCMS') or exit('No permission resources.');
/*
$session_storage = 'session_'.pc_base::load_config('system','session_storage');
pc_base::load_sys_class($session_storage);
*/pc_base::load_app_class('foreground','member');
pc_base::load_sys_class('format', '', 0);
pc_base::load_sys_class('form', '', 0);
/*pc_base::load_app_func('global');
*/
class mypoint extends foreground {
	private $point_db;
	function __construct() {
		/*
		if (!module_exists(ROUTE_M)) showmessage(L('module_not_exists')); 
		parent::__construct();
		$this->point_db = pc_base::load_model('point_records_model');
		//$this->_username = param::get_cookie('_username');
		$this->_userid = intval(param::get_cookie('_userid'));
		$this->handle = pc_base::load_app_class('point_records');
		*/
		//if (!module_exists(ROUTE_M)) showmessage(L('module_not_exists')); 
		//parent::__construct();
		//exit(ROUTE_M);
		$this->point_db = pc_base::load_model('point_records_model');
	}

	public function init() {
		/*
		$pointinfo['cause_type'] = 1;
		$pointinfo['cause_content'] = 1;
		$pointinfo['userid1'] = 1;
		$pointinfo['userid2'] = 2;
		$pointinfo['point'] = 222;
		
		$this->point_db->insert($pointinfo);
		include template('points', 'point_list');
		*/
	}

	public function charge() {
		include template('points', 'point_list');
	}
}
?>